/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ages.input

import java.awt.MouseInfo

class MousePoller(xy:XY) extends Thread {

  override def run(){
    while(true)
      {
        xy.x = MouseInfo.getPointerInfo().getLocation().x
        xy.y = MouseInfo.getPointerInfo().getLocation().y
        Thread.sleep(10)//around 60 polls/sec, seems reasonable? maybe?
      }
  }

}
